//
//  TTServerTool.h
//  WinesMall
//
//  Created by Isaac on 16/8/27.
//  Copyright © 2016年 Isaac. All rights reserved.
//

#import "TTBaseServerTool.h"
#import "TTPublicResult.h"
#import "TTPublicArrayResult.h"
#import "WSMPublicGetArrayResult.h"

@interface TTServerTool : TTBaseServerTool

#pragma mark POST 结果是字典
+ (void)postDictionaryResult:(NSString *)url param:(NSMutableDictionary *)param isNeedToken:(BOOL)isNeed complete:(void (^)(BOOL, TTPublicResult *, NSError *))complete;

#pragma mark POST 结果是数组
+ (void)postArrayResult:(NSString *)url param:(NSMutableDictionary *)param isNeedToken:(BOOL)isNeed complete:(void (^)(BOOL, TTPublicArrayResult *, NSError *))complete;

#pragma mark GET 结果是字典
+ (void)GETDictionaryResult:(NSString *)url param:(NSMutableDictionary *)param isNeedToken:(BOOL)isNeed complete:(void (^)(BOOL, TTPublicResult *, NSError *))complete;

#pragma mark GET 结果是数组
+ (void)GETArrayResult:(NSString *)url param:(NSMutableDictionary *)param isNeedToken:(BOOL)isNeed complete:(void (^)(BOOL, WSMPublicGetArrayResult *, NSError *))complete;


@end
